//
//  HXFoodBigModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/1.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXFoodBigModel.h"
#import "HXFoodSmallModel.h"
@implementation HXFoodBigModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        self.data = [[HXFoodSmallModel getHxFoodModelWithArray:dic[@"data"]] mutableCopy];
    }
    return self;
}
+ (BaseModel *)ModelWithDic:(NSDictionary *)dic {
    return [[HXFoodBigModel alloc] initWithDic:dic];
}

@end
